#ifndef MENUSELECTER_H
#define MENUSELECTER_H

#include <QWidget>
#include <QBoxLayout>
#include <QLabel>
#include <QStringList>
#include <QString>
#include <menulabel.h>

class MenuSelecter : public QWidget
{
    Q_OBJECT

    public:
        MenuSelecter(QString text, QStringList newOptions, int newInitIndex, int windowCenter, int y, QWidget *parent = 0);

        QString getSelection();
        void setToDefault();

    signals:
        void changed(QString selection);

    public slots:

    private:
        QLabel *label;
        MenuLabel *leftArrow;
        QLabel *selection;
        MenuLabel *rightArrow;

        QBoxLayout *layout;

        QStringList options;
        int initIndex;
        int curIndex;

    private slots:
        void leftArrowClicked();
        void rightArrow_clicked();


};

#endif // MENUSELECTER_H
